package com.wuyou.designPatterns.factory.abstractfactory.factory;

import java.util.ArrayList;
import java.util.List;

public abstract class Tray extends Item{
    protected final List<Item> tray = new ArrayList();
    public Tray(String caption) {
        super(caption);
    }

    public void add(Item item){
        this.tray.add(item);
    }
}
